﻿using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Touch2Like.DAL;
using Touch2Like.Model;
using System.Data;

namespace Touch2Like.Web.Touch2Rate
{
    public partial class ThankYou : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UserDAL user = new UserDAL();
            DataTable dtSetting = user.GetSettingByUserGUID(WebUtility.LogoOwner);
            if (dtSetting.Select("FlagName='Logo'").Length > 0)
            {
                img_logo.Src = dtSetting.Select("FlagName='Logo'")[0]["Value"].ToString();
            }
            if (dtSetting.Select("FlagName= 'DisplayCoupon'").Length > 0)
            {
                if (dtSetting.Select("FlagName = 'DisplayCoupon'")[0]["Value"].ToString() == "true")
                    Label_Message.Visible = true;
                else
                    Label_Message.Visible = false;
            }
            else
                Label_Message.Visible = false;
        }
    }
}